<extend name="./Public/Home/master.html" />
<block name="content">

    </div>

<div class="m-b-md">
    <h3 class="m-b-none">订单列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">订单列表</header>
            <div class="panel-body">
                <table id="MyStretchGrid" class="table table-striped datagrid m-b-sm">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>订单信息</th>
                        <th>订单状态</th>
                        <th>添加时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo['gid']}</td>
                            <td>{$vo['gname']}</td>
                            <td>
                                <ul>
                                    <li>市场价<del>{$vo['marketprice']}</del></li>
                                    <li>商城价<span>{$vo['shopprice']}</span></li>
                                </ul>
                            </td>
                            <td>{$vo['total']}</td>
                            <td>{$vo['click']}</td>

                            <td>{$vo['time']|date="Y-m-d H:i",###}</td>
                            <td>
                                <a href="{:u('GoodsList/index',['gid'=>$vo['gid']])}"><i class="fa fa-align-justify"></i></a>
                                <a href="{:u('edit',['gid'=>$vo['gid']])}"><i class="fa fa-pencil"></i></a>
                                <a href="{:u('del',['gid'=>$vo['gid']])}"><i class="fa fa-times text-danger text"></i></a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <!--分页样式书写-->
                <style>
                    /*其他页、上一页、下一页样式*/
                    .pagination .num,.prev,.next{
                        position: relative;
                        float: left;
                        padding: 6px 12px;
                        margin-left: -1px;
                        line-height: 1.42857143;
                        color: #337ab7;
                        text-decoration: none;
                        background-color: #fff;
                        border: 1px solid #ddd
                    }
                    /*当前分页样式*/
                    .pagination .current{
                        position: relative;
                        float: left;
                        padding: 6px 12px;
                        margin-left: -1px;
                        line-height: 1.42857143;
                        color: red;
                        text-decoration: none;
                        background-color: #fff;
                        border: 1px solid #ddd
                    }
                    .pagination .headerPage{
                        position: relative;
                        float: left;
                        padding: 6px 12px;
                        text-decoration: none;
                        background-color: #fff;

                    }
                </style>
                <!--分页样式结束-->
                <!--展示分页-->
                <div class="col-sm-12 text-right text-center-xs">
                    <ul class="pagination pagination-sm m-t-none m-b-none">
                        {$page}
                    </ul>
                </div>

            </div>
        </section>
    </div>
</div>
    </block>
